// const staticBaseUrl = "https://mall.mintaibank.com/frontend/benefits/static/bankStandard"
// const staticBaseUrl = "https://benefit.mintaibank.com/frontend/benefits/static/bankStandard"  //静态资源基础路径(静态资源放在nginx服务器上)
// const staticBaseUrl = "https://aw.zjmtbank.com:30002/frontend/benefits/static/bankStandard"
const staticBaseUrl = "https://aw.zjmtbank.com:30001/frontend/benefits/static/bankStandard"

//本地调试
// const baseUrl = "http://localhost:8766/"
// const baseDomain = "http://localhost:8766"

// 民泰 测试环境30001
const baseDomain = "https://aw.zjmtbank.com:30001/frontend/benefits/lhxfq"
let baseUrl = "https://aw.zjmtbank.com:30001/benefits/web-plat"
const baseImgUrl = "https://aw.zjmtbank.com:30001/benefits/web-plat"
const deptId = "1000367"
const appId = "wx31fa15edf5497c67" //  更新
const third_plat_appid = "wx4a93ed4ad036214b"
const signKey = 'wKvDvgkX1v7mZpunIPtD_z68vwtH0w4m'; //测试

// 民泰 更新环境30002
// const baseDomain = "https://aw.zjmtbank.com:30002/frontend/benefits/lhxfq"
// let baseUrl = "https://aw.zjmtbank.com:30002/benefits/web-plat"
// const baseImgUrl = "https://aw.zjmtbank.com:30002/benefits/web-plat"
// const deptId = "1000367" //参数必须要声明，值可以为空。权益平台-演示平台
// const appId = "wx98f97dda1a075045" //民泰惠生活商户  测试
// const third_plat_appid = "wx4a93ed4ad036214b"
// const signKey = 'wKvDvgkX1v7mZpunIPtD_z68vwtH0w4m'; //测试

// 民泰生产环境
// const baseDomain = "https://mall.mintaibank.com/frontend/benefits/lhxfq"
// let baseUrl = "https://mall.mintaibank.com/benefits/web-plat"
// const baseImgUrl = "https://mall.mintaibank.com/benefits/web-plat"
// const deptId = "1000367" //参数必须要声明，值可以为空。权益平台-演示平台
// const appId = "wxafea20932a430358" //民泰积分商城
// const third_plat_appid = "wxb9262b0130460ce3"
// const signKey = 'wKvDvgkX1v7mZpunIPtD_z68vwtH0w4m'; //测试

// const signKey  = 'oKVfu5xB0efFIq8uxOCk5c3XRvKdecHK'; //生产

// notifyUrl=https%3A%2F%2Fbenefits-uat.chinaums.com%2Fbenefits_uat%2Fweb-plat%2ForderPay%2FpayNotify%3Fcode%3D044&platformAmount=0&divisionFlag=true&merOrderId=30692208111332240141767886&sign=A064097FE242C32F247A16E4656CBF5B&subAppId=wx1e242117d1715de1&mid=898340149000005&subOpenId=o1t0yxO_8YmHoI4E2SRgxTqvCDnU&msgType=WXPay.jsPay&&returnUrl=https%3A%2F%2Fbenefits-uat.chinaums.com%2Fbenefits_uat%2Fweb-plat%2ForderPay%2FcallBack%3Fcode%3D044&orderDesc=044

// &merOrderId=30692208111027016095&mid=898201612345678&msgType=WXPay.jsPay&notifyUrl=http%3A%2F%2F172.30.251.168%3A8760%2Fweb-esp%2ForderPay%2FpayNotify%3Fcode%3D201&orderDesc=spreadOrder&1&returnUrl=https%3A%2F%2Fgain-dev.chinaums.com%2Fdigit-base%2Fweb-esp%2FreturnUrl%2FreturnUrl.html%3Fcode%3D201&sign=26A05CE81F54C6DB2B748A35897ABE74&subAppId=wx31a9a1934b0570d2&subOpenId=ojZNEwaEMbbzGTBCCHtLpulH21EU&
// #ifdef H5
// baseUrl = '/benefits';
// #endif

const redirect_uri = baseDomain + '/pages/userReg/userReg'
const callBackUrl = baseDomain + '/pages/yxlmCallBack/yxlmCallBack'
const MAX_INACTIVE_INTERVAL = 60 * 10; //session失效时长
const wechatAuthUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + appId + "&redirect_uri=" + redirect_uri + "&response_type=code&scope=snsapi_userinfo&state=001&component_appid=" + third_plat_appid + "&connect_redirect=1#wechat_redirect"

function getAddressSelectedStorageKey() {
    return 'addressId';
}

function getLocationStorageKey() {
    return 'location';
}

function getLocationAddressStorageKey() {
    return 'locationAddress';
}

function getContactSelectedStorageKey() {
    return 'contactId';
}

function getShopSelectedStorageKey() {
    return 'shop';
}

function getRegionSelectedStorageKey() {
    return 'region';
}

function getGoodsSearchHistoryStorageKey() {
    return 'goodsSearchHistory';
}
module.exports = {
    staticBaseUrl,
    baseDomain,
    baseUrl,
    baseImgUrl,
    wechatAuthUrl,
    deptId,
    appId,
    third_plat_appid,
    signKey,
    MAX_INACTIVE_INTERVAL,
    callBackUrl,
    getAddressSelectedStorageKey: getAddressSelectedStorageKey,
    getLocationStorageKey: getLocationStorageKey,
    getLocationAddressStorageKey: getLocationAddressStorageKey,
    getContactSelectedStorageKey: getContactSelectedStorageKey,
    getShopSelectedStorageKey: getShopSelectedStorageKey,
    getRegionSelectedStorageKey: getRegionSelectedStorageKey,
    getGoodsSearchHistoryStorageKey: getGoodsSearchHistoryStorageKey
}